<?php
include '../newlib.php';
$program = $_REQUEST['program'];
$stm = $tmpConnection->prepare("update images set listed = listed * -1 where id=:id");
$stm->execute(array(':id' => $_REQUEST['id']));
header("Location: imgman.php?program=" . $program);
?>
